import Mock from 'mockjs';

let adminsJson = require('../static/js/json/admins.json')
let menuData = require('../static/js/json/menu.json');
let scrollData = require('../static/js/json/scroll.json');

Mock.setup({
  timeout: '200-400'
});

Mock.mock('/admins', 'post', adminsJson);//模拟ajax请求从文件（上面定义的常量）获得数据
Mock.mock('/menuData', 'post', menuData);
Mock.mock('/scrollData', 'get', scrollData);


